import mockRequest from '@/utils/mockRequest'
const state = {}
const mutations = {}
const actions = {
  // 发送请求获取首页的mock数据
  getData({ commit }) {
    mockRequest.get('/home/list').then(res => {
      console.log(res)
      console.log(commit)
    }).catch(err => {
      console.log(err)
    })
  }
}
const getters = {}
export default {
  state, mutations, actions, getters
}
